package fr.cephb.lang;
/*update  little indian in cabernet */

/**
 * Define Indianess.
 * As Mario Foglio is generating its files in C, there can be a problem 
 * of Indianess. This type should be fixed before launching any application
 */
public enum Endian {
/** small endian */
BIG,//ceph
/** big endian */
SMALL;//cng

static private Endian DEFAULT_VALUE=SMALL;
/** endianness of java */
static public Endian JAVA=SMALL;
/** endianess at cng : tested on paulliac and cabernet */
static public Endian CNG=SMALL;
/** endianess at ceph, on pierre's PC */
static public Endian CEPH=BIG;
/**
 * set the default endianess
 * @param defaultValue
 */
public static void setDefault(Endian defaultValue) {
	Endian.DEFAULT_VALUE = defaultValue;
	}

/** get the default endianess */
public static Endian getDefault() {
	return DEFAULT_VALUE;
	}

/*
static private Endian DEFAULT_VALUE=BIG;
static public Endian JAVA=BIG;
static public Endian CNG=BIG;
static public Endian CEPH=SMALL;
 */

}
